import request from "@/utils/request";

// 图片上传
export function setImageUpload(data) {
  return request({
    url: "/biz/common/image/upload",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data,
  });
}
// 获取图片
export function getImage(data) {
  return request({
    url: "/biz/common/image/loading",
    method: "get",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    params: data,
  });
}
//查询部门信息
export function getDeptList(data) {
  return request({
    url: "/people/select/queryDepartments",
    method: "get",
    params: data,
  });
}
//查询人员信息
export function getPersonnelInformation(data) {
  return request({
    url: "/people/select/queryUsers",
    method: "get",
    params: data,
  });
}
//模板保存
export function setTemplate(data) {
  return request({
    url: "/party/template/save",
    method: "post",
    data: data,
  });
}
//查询模板列表
export function getTemplate(data) {
  return request({
    url: "/party/template/list",
    method: "post",
    params: data,
  });
}
//模板删除
export function delTemplate(data) {
  return request({
    url: "/party/template/remove",
    method: "post",
    params: {
      id: data,
    },
  });
}

//下发数据删除
export function delEvaluation(data) {
  return request({
    url: "/party/issued/remove",
    method: "post",
    params: {
      id: data,
    },
  });
}
//模板编辑和预览
export function getTemplateInfo(data) {
  return request({
    url: "/party/template/info",
    method: "post",
    params: {
      id: data.id,
    },
  });
}
//当前下发数据信息
export function getEvaluationInfo(data) {
  return request({
    url: "/party/issued/info",
    method: "post",
    params: {
      id: data.id,
    },
  });
}
//下发数据加载
export function loadingEvaluationInfo(data) {
  return request({
    url: "/party/issued/loading",
    method: "post",
    data: data,
  });
}
//模板数据下发
export function evaluationIssue(data) {
  return request({
    url: "/party/evaluation/issued",
    method: "post",
    data: data,
  });
}
//下发信息调整
export function evaluationAdjust(data) {
  return request({
    url: "/party/issued/adjust",
    method: "post",
    data: data,
  });
}
//保存群组管理
export function setGroup(data) {
  return request({
    url: "/party/group/save",
    method: "post",
    data: data,
  });
}
//查询群组列表
export function getGroup(data) {
  return request({
    url: "/party/group/list",
    method: "post",
    params: data,
  });
}
//删除群组管理
export function delGroup(data) {
  return request({
    url: "/party/group/remove",
    method: "post",
    params: {
      id: data,
    },
  });
}
//下发数据列表
export function getEvaluation(data) {
  return request({
    url: "/party/issued/list",
    method: "post",
    params: data,
  });
}
//模板数据校验
export function submitTheVerification(data) {
  return request({
    url: "/party/evaluation/check",
    method: "post",
    data: data,
  });
}
//测评数据提交
export function submitAVote(data) {
  return request({
    url: "/party/evaluation/submit",
    method: "post",
    data: data,
  });
}
//测评未提交人员催办
export function evaluationUrge(data) {
  return request({
    url: "/party/evaluation/urge",
    method: "post",
    params: data,
  });
}
//群组数据导入
export function bulkImport(data) {
  return request({
    url: "/party/group/import",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
//群组详情
export function groupDetails(data) {
  return request({
    url: "/party/group/info",
    method: "post",
    params: {
      id: data,
    },
  });
}




